<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        input:enabled{
            border: 2px solid red;
        }
        input:disabled{
            border: 2px solid black;
        }
        input:checked{
            border: 2px solid blue;
        }
    </style>

</head>
<body>
    <input type="text">
    <input type="button" value="按钮1">
    <bar></bar>

    <input type="text" disabled>
    <input type="button" value="按钮2" disabled>
    <bar></bar>

    <input type="checkbox" checked>
    <input type="checkbox" value="按钮2" checked>
    <bar></bar>
    
</body>
</html>